import { defineStore } from 'pinia'
import { computed, ref } from 'vue'
export const useCounterStore = defineStore('count', () => {
  const count = ref(100)
  const doubleCount = computed(() => count.value * 2)
  const increment = () => {
    count.value++
  }
  return { count, doubleCount, increment }
})
